  <style>    
    #testFileInput2{
        height: 30px; width: 102px; margin-left: 128px;
    }
    #preview1, #topPhpto,#preview2, #topPhpto2,#preview3, #topPhpto3
    {  
        width:150px;  
        padding-left: 65px;padding-top: 15px; border-top-width: 5px;
        //height:150px;  
    }
    #testFileInput3-button,#testFileInput4-button {
        height: 30px; line-height: 30px; width: 120px; margin-left: 130px;
    }
</style>
<script src="<{$Think.const.JS_URL}>imgbox.js"></script>
<div class="pageContent" style="width:800px;height:600px">	
    <form method="post" action="__CONTROLLER__/edit?callbackType=closeCurrent" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
        <input type='hidden' name='id' value="<{$vo['id']}>"/>  
        <input type='hidden' name='icon' value="<{$vo.icon}>" id='img1'/>
        <input type='hidden' name='logo' value="<{$vo.logo}>" id='img2'/>
        <input type='hidden' name='image' value="<{$vo.image}>" id='img3'/>
        <div class="pageFormContent" layoutH="58"> 
            <div class="unit">
                <label>网站名：</label>
                <textarea name="name" rows="1" cols="20" style="resize: none;" class="required"><{$vo.name}></textarea>
            </div>
            <div id="preview1" href=""><img src="<{$Think.const.PUBLIC_URL}>upload/<{$vo.icon}>" id='topPhpto'/></div>
            <div class="unit">
                <label>上传图标：</label>  
                <input id="testFileInput2" type="file" name="images"                                        
                    uploaderOption="{
                        swf:'<{$Think.const.DWZ_URL}>uploadify/scripts/uploadify.swf',
                        uploader:'__MODULE__/Common/upImg&aid=<{$Think.session.ad_image}>',
                        formData:{authId:<?php echo $_SESSION['authId'];?>, ajax:1},
                        buttonText:'请选择文件',
                        fileSizeLimit:'20000KB',
                        fileTypeDesc:'*.ico;',
                        fileTypeExts:'*.ico;',
                        auto:true,
                        onUploadSuccess:function(file,data,respore){
                            $('#topPhpto').attr('src','<{$Think.const.PUBLIC_URL}>'+'Upload/'+data);
                            $('#img1').val(data);
                        }
                    }"
                />
            </div>
            <div id="preview2" href=""><img src="<{$Think.const.PUBLIC_URL}>upload/<{$vo.logo}>" id='topPhpto2'/></div>
            <div class="unit">
                <label>上传LOGO：</label>  
                <input id="testFileInput3" type="file" name="images"                                        
                    uploaderOption="{
                        swf:'<{$Think.const.DWZ_URL}>uploadify/scripts/uploadify.swf',
                        uploader:'__MODULE__/Common/upImg&aid=<{$Think.session.ad_image}>',
                        formData:{authId:<?php echo $_SESSION['authId'];?>, ajax:1},
                        buttonText:'请选择文件',
                        fileSizeLimit:'20000KB',
                        fileTypeDesc:'*.JPEG;*.jpg;*.png;*.gif;',
                        fileTypeExts:'*.JPEG;*.jpg;*.png;*.gif;',
                        auto:true,
                        onUploadSuccess:function(file,data,respore){
                            $('#topPhpto2').attr('src','<{$Think.const.PUBLIC_URL}>'+'Upload/'+data);
                            $('#img2').val(data);
                        }
                    }"
                />
            </div>
            <div id="preview3" href=""><img src="<{$Think.const.PUBLIC_URL}>upload/<{$vo.image}>" id='topPhpto3'/></div>
            <div class="unit">
                <label>公众号二维码：</label>  
                <input id="testFileInput4" type="file" name="images"                                        
                    uploaderOption="{
                        swf:'<{$Think.const.DWZ_URL}>uploadify/scripts/uploadify.swf',
                        uploader:'__MODULE__/Common/upImg&aid=<{$Think.session.ad_image}>',
                        formData:{authId:<?php echo $_SESSION['authId'];?>, ajax:1},
                        buttonText:'请选择文件',
                        fileSizeLimit:'20000KB',
                        fileTypeDesc:'*.JPEG;*.jpg;*.png;*.gif;',
                        fileTypeExts:'*.JPEG;*.jpg;*.png;*.gif;',
                        auto:true,
                        onUploadSuccess:function(file,data,respore){
                            $('#topPhpto3').attr('src','<{$Think.const.PUBLIC_URL}>'+'Upload/'+data);
                            $('#img3').val(data);
                        }
                    }"
                />
            </div>
            <div class="unit">
                <label>SEO关键字：</label>
                <textarea name="keywords" rows="4" cols="20" style="resize: none;" class="required"><{$vo.keywords}></textarea>
            </div>
            <div class="unit">
                <label>网站描述：</label>
                <textarea name="desc_" rows="6" cols="20" style="resize: none;" class="required"><{$vo.desc_}></textarea>
            </div>
            <div class="unit">
                <label>联系电话：</label>
                <input type="text" name="tel" value="<{$vo.tel}>" class="phone" size="25" />
            </div>
            <div class="unit">
                <label>邮箱：</label>
                <input type="text" name="email" value="<{$vo.email}>" class="email" size="25"/>
            </div>
            <div class="unit">
                <label>地址：</label>
                <textarea name="address" rows="4" cols="20" style="resize: none;" class=""><{$vo.address}></textarea>
            </div>
            <div class="unit">
                <label>版权信息：</label>
                <textarea name="copyright" rows="6" cols="20" style="resize: none;" class="required"><{$vo.copyright}></textarea>
            </div>
        </div>
        <div class="formBar">
            <ul>
                <li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
                <li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
            </ul>
        </div>
    </form>	
</div>
